#include "apue.h"

int main() {
	int fd = open("test", O_RDWR);
	dup2(fd, 0);
	dup2(fd, 1);
	dup2(fd, 2);
	if (fd > 2)
		close(fd);
	puts("test chong ding xiang\n");
	return 0;
}
